﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Warranty.Model.Model;

namespace Warranty.Model.Interface
{
    public interface IDealerProvider
    {
        List<Dealer> SearchDealer(out int totalRecord, string textSearch, int pageindex = 0, int pagesize = 0);

        List<Dealer> SearchDealer(out int totalRecord, string textSearch, string[] shopcodes, bool? verifyFlag, bool? confirmFlag, DateTime? fromdate, DateTime? todate, int pageindex = 0, int pagesize = 0);

        Dealer RetrieveDealer(string shopCode, string ediNo, DateTime? selloutDate);

        bool Update(Dealer dealer);
    }
}
